package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.Advice;
import com.ruoyi.business.qo.AdviceQO;
import org.apache.ibatis.annotations.Param;

public interface AdviceMapper extends BaseMapper<Advice> {
    int deleteByPrimaryKey(Integer id);

    int insert(Advice record);

    int insertSelective(Advice record);

    Advice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Advice record);

    int updateByPrimaryKey(Advice record);

    IPage<Advice> queryPage(@Param("page") Page page, @Param("adviceQO") AdviceQO adviceQO);
}